package com.example.usermanager.mapper;

import com.example.usermanager.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:咭咭熊
 * Date:2021 - 07 - 25
 * Time:19:18
 */
@Mapper
public interface UserMapper {
    //1.创建登录方法
    public UserInfo login(String username,String password);

    public int add(UserInfo userInfo);

    public UserInfo getUser(int uid);

    public int update(UserInfo userInfo);


    public int del(int id, Integer isadmin);

    public List<UserInfo> getListByPage(String name, String address, String email, int skipCount, int psize, Integer isadmin);

    public int getCount(String name, String address, String email, Integer isadmin);

    public int dels(String[] ids);
}
